1 <?
2 //Check user
's Browser
3 if
(strpos($_SERVER["HTTP_USER_AGENT"],"MSIE"))
4     echo
"<script language=JavaScript src='../inv/scripts/editor.js'></script>";
5 else

6     echo
"<script language=JavaScript src='../inv/scripts/moz/editor.js'></script>";
7 ?>
8 <script type=
"text/javascript" src="/quantri/js/jquery-upload.js"></script>
9 <script type=
"text/javascript">
10
11     
12 $(document).ready(function(){

13
14 var
id = 1;
15
16 $(
'.thumb').each(
17    function() {
18      $(
this).attr('id', 'thumb' + id);
19     id++;
20
21     
new AjaxUpload($(this).attr('id'), {
22         action:
'/quantri/upload-admin.php?fieldname=image'+$(this).attr('id'),
23         name:
'image'+$(this).attr('id'), // name: 'image'+$(this).attr('id'),
24         onSubmit: function(file, extension) {
25         
26             
var targetid = this._settings.name.replace("imagethumb", "");
27         
28             
if (!(extension && /^(jpg|png|jpeg|gif)$/i.test(extension))){
29                         
// extension is not allowed
30                         alert(
'Error: invalid file extension');
31                         
// cancel upload
32                         
return false;
33                 }
34             
else {
35                 
36                 $(
'img#thumb'+targetid).closest('div.preview').addClass('loading');
37             }
38         },
39         onComplete: function(file, response) {
40
41             
var targetid = this._settings.name.replace("imagethumb", "");
42             
43             $(
'img#thumb'+targetid).load(function(){
44                 $(
'img#thumb'+targetid).closest('div.preview').removeClass('loading');
45                 $(
'img#thumb'+targetid).unbind();
46             });
47             $(
'img#thumb'+targetid).attr('src', response);
48             $(
'input#imagefield'+targetid).remove();
49             $(
'img#thumb'+targetid).after('<input class="thumbfield" type="hidden" name="imagefield'+targetid+'" id="imagefield'+targetid+'" value="'+response+'" />');
50
51         }
52     });
53 });
54
55 });
56
57
58
59 </script>
60 <script>
61 function submitForm()
62     {
63     document.forms.FormLoaiSP.elements.txtDesc.
value = oEdit1.getHTMLBody();
64         document.forms.FormLoaiSP.elements.txtDescen.
value = oEdit2.getHTMLBody();
65     document.forms.FormLoaiSP.submit();
66     }
67 </script>
68
69 <?
70 $path =
"../images/products";
71 $pathdb =
"images/products";
72 if
(isset($_POST['butSaveLoai'])) {
73     $code=$_POST[
'code'];
74     $name=$_POST[
'name'];
75     $nguoimua=$_POST[
'nguoimua'];
76     $view=$_POST[
'view'];
77     
78     $baohanh=$_POST[
'baohanh'];
79     $status=$_POST[
'status'];
80     $noibat=$_POST[
'noibat'];
81     $tinhtrang=$_POST[
'tinhtrang'];
82     $khoiluong=$_POST[
'khoiluong'];
83     $uptop=$_POST[
'uptop'];
84     $upxuhuong=$_POST[
'upxuhuong'];
85     $topxuhuong=$_POST[
'topxuhuong'];
86     $topkhuyenmai=$_POST[
'topkhuyenmai'];
87     
88      $mausac_nau = ($_POST[
'mausac_nau']!=''?"804000":"");
89      $mausac_vang = ($_POST[
'mausac_vang']!=''?"ffff00":"");
90      $mausac_trang = ($_POST[
'mausac_trang']!=''?"ffffff":"");
91      $mausac_den = ($_POST[
'mausac_den']!=''?"000002":"");
92      $mausac_hong = ($_POST[
'mausac_hong']!=''?"ff00ff":"");
93      $mausac_xanhla = ($_POST[
'mausac_xanhla']!=''?"20ff00":"");
94      $mausac_xanhnuocbien = ($_POST[
'mausac_xanhnuocbien']!=''?"2080ff":"");
95      $mausac_xanhngoc = ($_POST[
'mausac_xanhngoc']!=''?"20ffff":"");
96      $mausac_xanhden = ($_POST[
'mausac_xanhden']!=''?"112c4e":"");
97  $mausac_xam = ($_POST[
'mausac_xam']!=''?"999999":"");
98   $mausac_tim = ($_POST[
'mausac_tim']!=''?"800080":"");
99    $mausac_do = ($_POST[
'mausac_do']!=''?"ff2000":"");
100     $mausac_cam = ($_POST[
'mausac_cam']!=''?"ff8040":"");
101      $mausac_kem = ($_POST[
'mausac_kem']!=''?"fef2ce":"");
102      $mausac_xanhduong = ($_POST[
'mausac_xanhduong']!=''?"2522c5":"");
103       $mausac_soc = ($_POST[
'mausac_soc']!=''?"mul-color.gif":"");
104        $mausac_xanhladam = ($_POST[
'mausac_xanhladam']!=''?"007000":"");
105        $mausac_hoatiet = ($_POST[
'mausac_hoatiet']!=''?"floral.jpg":"");
106        $mausac_bac = ($_POST[
'mausac_bac']!=''?"cccccc":"");
107        $mausac_hongphan = ($_POST[
'mausac_hongphan']!=''?"ffc2cb":"");
108        
109 $kichthuoc_freesize = ($_POST[
'kichthuoc_freesize']!=''?"freesize":"");
110 $kichthuoc_1 = ($_POST[
'kichthuoc_1']!=''?"1":"");
111 $kichthuoc_2 = ($_POST[
'kichthuoc_2']!=''?"2":"");
112 $kichthuoc_3 = ($_POST[
'kichthuoc_3']!=''?"3":"");
113 $kichthuoc_4 = ($_POST[
'kichthuoc_4']!=''?"4":"");
114 $kichthuoc_5 = ($_POST[
'kichthuoc_5']!=''?"5":"");
115 $kichthuoc_6 = ($_POST[
'kichthuoc_6']!=''?"6":"");
116 $kichthuoc_7 = ($_POST[
'kichthuoc_7']!=''?"7":"");
117 $kichthuoc_8 = ($_POST[
'kichthuoc_8']!=''?"8":"");
118 $kichthuoc_9 = ($_POST[
'kichthuoc_9']!=''?"9":"");
119 $kichthuoc_10 = ($_POST[
'kichthuoc_10']!=''?"10":"");
120 $kichthuoc_11 = ($_POST[
'kichthuoc_11']!=''?"11":"");
121 $kichthuoc_12 = ($_POST[
'kichthuoc_12']!=''?"12":"");
122 $kichthuoc_S = ($_POST[
'kichthuoc_S']!=''?"S":"");
123 $kichthuoc_M = ($_POST[
'kichthuoc_M']!=''?"M":"");
124 $kichthuoc_L = ($_POST[
'kichthuoc_L']!=''?"L":"");
125 $kichthuoc_XL = ($_POST[
'kichthuoc_XL']!=''?"XL":"");
126 $kichthuoc_XXL = ($_POST[
'kichthuoc_XXL']!=''?"XXL":"");
127 $kichthuoc_XS = ($_POST[
'kichthuoc_XS']!=''?"XS":"");
128 $kichthuoc_XXS = ($_POST[
'kichthuoc_XXS']!=''?"XXS":"");
129 $kichthuoc_2XL = ($_POST[
'kichthuoc_2XL']!=''?"2XL":"");
130 $kichthuoc_3XL = ($_POST[
'kichthuoc_3XL']!=''?"3XL":"");
131 $kichthuoc_4XL = ($_POST[
'kichthuoc_4XL']!=''?"4XL":"");
132 $kichthuoc_5XL = ($_POST[
'kichthuoc_5XL']!=''?"5XL":"");
133 $kichthuoc_6XL = ($_POST[
'kichthuoc_6XL']!=''?"6XL":"");
134 $kichthuoc_25 = ($_POST[
'kichthuoc_25']!=''?"25":"");
135 $kichthuoc_26 = ($_POST[
'kichthuoc_26']!=''?"26":"");
136 $kichthuoc_27 = ($_POST[
'kichthuoc_27']!=''?"27":"");
137 $kichthuoc_28 = ($_POST[
'kichthuoc_28']!=''?"28":"");
138 $kichthuoc_29 = ($_POST[
'kichthuoc_29']!=''?"29":"");
139 $kichthuoc_30 = ($_POST[
'kichthuoc_30']!=''?"30":"");
140 $kichthuoc_31 = ($_POST[
'kichthuoc_31']!=''?"31":"");
141 $kichthuoc_32 = ($_POST[
'kichthuoc_32']!=''?"32":"");
142 $kichthuoc_33 = ($_POST[
'kichthuoc_33']!=''?"33":"");
143 $kichthuoc_34 = ($_POST[
'kichthuoc_34']!=''?"34":"");
144 $kichthuoc_35 = ($_POST[
'kichthuoc_35']!=''?"35":"");
145 $kichthuoc_36 = ($_POST[
'kichthuoc_36']!=''?"36":"");
146 $kichthuoc_37 = ($_POST[
'kichthuoc_37']!=''?"37":"");
147 $kichthuoc_38 = ($_POST[
'kichthuoc_38']!=''?"38":"");
148 $kichthuoc_39 = ($_POST[
'kichthuoc_39']!=''?"39":"");
149 $kichthuoc_40 = ($_POST[
'kichthuoc_40']!=''?"40":"");
150 $kichthuoc_41 = ($_POST[
'kichthuoc_41']!=''?"41":"");
151 $kichthuoc_42 = ($_POST[
'kichthuoc_42']!=''?"42":"");
152 $kichthuoc_43 = ($_POST[
'kichthuoc_43']!=''?"43":"");
153 $kichthuoc_44 = ($_POST[
'kichthuoc_44']!=''?"44":"");
154 $kichthuoc_45 = ($_POST[
'kichthuoc_45']!=''?"45":"");
155 $kichthuoc_46 = ($_POST[
'kichthuoc_46']!=''?"46":"");
156 $kichthuoc_47 = ($_POST[
'kichthuoc_47']!=''?"47":"");
157     
158     $user=$_POST[
'user'];
159     $price=(
int)$_POST['txtPrice'];
160     $priceen=(
int)$_POST['txtPriceen'];
161     $shortdesc=$_POST[
'txtShortDesc'];
162     $desc=$_POST[
'txtDesc'];
163     $cat=$_POST[
'cat'];
164     $trogia=$_POST[
'trogia'];
165     $upnoibat=$_POST[
'upnoibat'];
166     $upkhuyenmai=$_POST[
'upkhuyenmai'];
167     $upvt6=$_POST[
'upvt6'];
168     $tukhoaseo=$_POST[
'tukhoaseo'];
169     $tieudeseo=$_POST[
'tieudeseo'];
170     $motaseo=$_POST[
'motaseo'];
171     $link=$_POST[
'link'];
172     $imageadmin=$_POST[
'imagefield1'];
173 date_default_timezone_set(
"Asia/Ho_Chi_Minh");
174     $date = date(
"d-m-Y H:i:s");
175     $sort = $_POST[
'txtSortOrder'];
176
177     $catinfo=GetCategoryInfo($categories_id);
178     $err=
"";
179  
180
181     
if ($err=='')
182     {
183  
184             $oldid = $_POST[
'id'];
185             $sql =
"insert into products (city,code, name, image, price, price_special, short, content, cat, tinhtrang,khoiluong,baohanh, date, user,tukhoaseo,tieudeseo, motaseo,company,phone,address,mausac_nau,mausac_vang,mausac_trang,mausac_den,mausac_hong,mausac_xanhla,mausac_xanhnuocbien,mausac_xanhngoc ,mausac_xanhden ,mausac_xam ,mausac_tim ,mausac_do ,mausac_cam ,mausac_kem ,mausac_xanhduong ,mausac_soc ,mausac_xanhladam ,mausac_hoatiet ,mausac_bac ,mausac_hongphan,kichthuoc_freesize,kichthuoc_1,kichthuoc_2 ,kichthuoc_3 ,kichthuoc_4 ,kichthuoc_5 ,kichthuoc_6 ,kichthuoc_7 ,kichthuoc_8 ,kichthuoc_9 ,kichthuoc_10 ,kichthuoc_11 ,kichthuoc_12 ,kichthuoc_S ,kichthuoc_M ,kichthuoc_L ,kichthuoc_XL ,kichthuoc_XXL ,kichthuoc_XS ,kichthuoc_XXS ,kichthuoc_2XL ,kichthuoc_3XL ,kichthuoc_4XL ,kichthuoc_5XL ,kichthuoc_6XL ,kichthuoc_25 ,kichthuoc_26 ,kichthuoc_27 ,kichthuoc_28 ,kichthuoc_29 ,kichthuoc_30 ,kichthuoc_31 ,kichthuoc_32 ,kichthuoc_33 ,kichthuoc_34 ,kichthuoc_35 ,kichthuoc_36 ,kichthuoc_37 ,kichthuoc_38 ,kichthuoc_39 ,kichthuoc_40 ,kichthuoc_41 ,kichthuoc_42 ,kichthuoc_43 ,kichthuoc_44 ,kichthuoc_45 ,kichthuoc_46 ,kichthuoc_47) values ('".$citymoi."','".$code."','".$name."','".$imageadmin."','".$price."','".$priceen."','".$shortdesc."','".$desc."','".$cat."','".$tinhtrang."','".$khoiluong."','".$baohanh."','".$date."','".$user."', '".$tukhoaseo."', '".$tieudeseo."', '".$motaseo."', '".$company."', '".$phone."', '".$address."','".$mausac_nau."', '".$mausac_vang."', '".$mausac_trang."', '".$mausac_den."', '".$mausac_hong."', '".$mausac_xanhla."', '".$mausac_xanhnuocbien."', '".$mausac_xanhngoc."', '".$mausac_xanhden."', '".$mausac_xam."', '".$mausac_tim."', '".$mausac_do."', '".$mausac_cam."', '".$mausac_kem."', '".$mausac_xanhduong."', '".$mausac_soc."', '".$mausac_xanhladam."', '".$mausac_hoatiet."', '".$mausac_bac."', '".$mausac_hongphan."', '".$kichthuoc_freesize."', '".$kichthuoc_1."', '".$kichthuoc_2."', '".$kichthuoc_3."', '".$kichthuoc_4."', '".$kichthuoc_5."', '".$kichthuoc_6."', '".$kichthuoc_7."', '".$kichthuoc_8."', '".$kichthuoc_9."', '".$kichthuoc_10."', '".$kichthuoc_11."', '".$kichthuoc_12."', '".$kichthuoc_S."', '".$kichthuoc_M."', '".$kichthuoc_L."', '".$kichthuoc_XL."', '".$kichthuoc_XXL."', '".$kichthuoc_XS."', '".$kichthuoc_XXS."', '".$kichthuoc_2XL."', '".$kichthuoc_3XL."', '".$kichthuoc_4XL."', '".$kichthuoc_5XL."', '".$kichthuoc_6XL."', '".$kichthuoc_25."', '".$kichthuoc_26."', '".$kichthuoc_27."', '".$kichthuoc_28."', '".$kichthuoc_29."', '".$kichthuoc_30."', '".$kichthuoc_31."', '".$kichthuoc_32."', '".$kichthuoc_33."', '".$kichthuoc_34."', '".$kichthuoc_35."', '".$kichthuoc_36."', '".$kichthuoc_37."', '".$kichthuoc_38."', '".$kichthuoc_39."', '".$kichthuoc_40."', '".$kichthuoc_41."', '".$kichthuoc_42."', '".$kichthuoc_43."', '".$kichthuoc_44."', '".$kichthuoc_45."', '".$kichthuoc_46."', '".$kichthuoc_47."')";
186      
187  
188         
//echo $sql;
189         
//exit();
190         
if (mysql_query($sql,$con))
191         {
192             
if(empty($_POST['id'])) {
193                 $oldid = mysql_insert_id();
194                 }
195         
196             $sqlUpdateField =
"";
197             
198             $extsmall=GetFileExtention($_FILES[
'txtImage']['name']);
199             
if (MakeUpload($_FILES['txtImage'],"$path/product_s$oldid$extsmall"))
200             {
201                 @chmod(
"$path/product_s$oldid$extsmall", 0777);
202                 $sqlUpdateField =
" image='$pathdb/product_s$oldid$extsmall' ";
203             }
204
205             $extlarge=GetFileExtention($_FILES[
'txtImageLarge']['name']);
206             
if (MakeUpload($_FILES['txtImageLarge'],"$path/product_l$oldid$extlarge"))
207             {
208                 @chmod(
"$path/product_l$oldid$extlarge", 0777);
209                 
if($sqlUpdateField != "") $sqlUpdateField .= ",";
210                 $sqlUpdateField .=
" image_large='$pathdb/product_l$oldid$extlarge' ";
211             }
212             
if($sqlUpdateField!='')
213             {
214                 $sqlUpdate =
"update products set $sqlUpdateField where id='".$oldid."'";
215                 mysql_query($sqlUpdate,$con);
216             }
217         }
218         
else {
219             $err =
"Không th&#7875; c&#7853;p nh&#7853;t";
220         }
221     }
222
223     
if ($err=='') echo '<script>window.location="?act=product_m&cat=&status&id='.$_REQUEST['id'].'&page='.$_REQUEST['page'].'&code=1"</script>';
224     
else echo " ";
225 }
else {
226 ?>
227 <?php
228 $sql_config_user9999=mysql_query(
"SELECT * FROM user_shop where user='".$_REQUEST['user']."'");
229 $row_config_user9999=mysql_fetch_assoc($sql_config_user9999);
230 $company = $row_config_user9999[
'company'];
231 $phone = $row_config_user9999[
'phone'];
232 $address = $row_config_user9999[
'address'];
233 $sql_config_user=mysql_query(
"SELECT * FROM config_user where id=1");
234 $row_config_user=mysql_fetch_assoc($sql_config_user);
235 $sql_pro_config=mysql_query(
"SELECT * FROM products where user='".$_REQUEST['user']."'");
236 $toalt_pro=mysql_num_rows($sql_pro_config);
237 $citymoi = $row_config_user9999[
'city'];
238 ?>
239 <?
240     
if (isset($_GET['id'])) {
241         $oldid=$_GET[
'id'];
242         $page = $_GET[
'page'];
243         $sql =
"select * from products where id='".$oldid."'";
244         
if ($result = mysql_query($sql,$con)) {
245             $row=mysql_fetch_array($result);
246             $code=$row[
'code'];
247             $name=$row[
'name'];
248             $user=$row[
'user'];
249             $status=$row[
'status'];
250             $image=$row[
'image'];
251             $categories_id = $row[
'cat_mem'];
252             $imagelarge=$row[
'image_large'];
253             $price=$row[
'price'];
254             $priceen=$row[
'price_special'];
255             $shortdesc=$row[
'short'];
256             $desc1=$row[
'content'];
257             $provider_id=$row[
'cat'];
258             $sort = $row[
'thutu'];
259             $upnoibat = $row[
'upnoibat'];
260             $upkhuyenmai = $row[
'upkhuyenmai'];
261             $upvt6 = $row[
'upvt6'];
262             $link = $row[
'trogia_link'];
263             
264                 $mausac_nau=$row[
'mausac_nau'];
265             $mausac_vang=$row[
'mausac_vang'];
266             $mausac_trang=$row[
'mausac_trang'];
267             $mausac_den=$row[
'mausac_den'];
268             $mausac_hong=$row[
'mausac_hong'];
269             $mausac_xanhla=$row[
'mausac_xanhla'];
270             $mausac_xanhnuocbien=$row[
'mausac_xanhnuocbien'];
271             $mausac_xanhngoc=$row[
'mausac_xanhngoc'];
272             $mausac_xanhden=$row[
'mausac_xanhden'];
273             $mausac_xam=$row[
'mausac_xam'];
274             $mausac_tim=$row[
'mausac_tim'];
275             $mausac_do=$row[
'mausac_do'];
276             $mausac_cam=$row[
'mausac_cam'];
277             $mausac_kem=$row[
'mausac_kem'];
278             $mausac_xanhduong=$row[
'mausac_xanhduong'];
279             $mausac_soc=$row[
'mausac_soc'];
280             $mausac_xanhladam=$row[
'mausac_xanhladam'];
281             $mausac_hoatiet=$row[
'mausac_hoatiet'];
282             $mausac_bac=$row[
'mausac_bac'];
283             $mausac_hongphan=$row[
'mausac_hongphan'];
284             
285             $kichthuoc_freesize=$row[
'kichthuoc_freesize'];
286             $kichthuoc_1=$row[
'kichthuoc_1'];
287             $kichthuoc_2=$row[
'kichthuoc_2'];
288             $kichthuoc_3=$row[
'kichthuoc_3'];
289             $kichthuoc_4=$row[
'kichthuoc_4'];
290             $kichthuoc_5=$row[
'kichthuoc_5'];
291             $kichthuoc_6=$row[
'kichthuoc_6'];
292             $kichthuoc_7=$row[
'kichthuoc_7'];
293             $kichthuoc_8=$row[
'kichthuoc_8'];
294             $kichthuoc_9=$row[
'kichthuoc_9'];
295             $kichthuoc_10=$row[
'kichthuoc_10'];
296             $kichthuoc_11=$row[
'kichthuoc_11'];
297             $kichthuoc_12=$row[
'kichthuoc_12'];
298             $kichthuoc_S=$row[
'kichthuoc_S'];
299             $kichthuoc_M=$row[
'kichthuoc_M'];
300             $kichthuoc_L=$row[
'kichthuoc_L'];
301             $kichthuoc_XL=$row[
'kichthuoc_XL'];
302             $kichthuoc_XXL=$row[
'kichthuoc_XXL'];
303             $kichthuoc_XS=$row[
'kichthuoc_XS'];
304             $kichthuoc_XXS=$row[
'kichthuoc_XXS'];
305             $kichthuoc_2XL=$row[
'kichthuoc_2XL'];
306             $kichthuoc_3XL=$row[
'kichthuoc_3XL'];
307             $kichthuoc_4XL=$row[
'kichthuoc_4XL'];
308             $kichthuoc_5XL=$row[
'kichthuoc_5XL'];
309             $kichthuoc_6XL=$row[
'kichthuoc_6XL'];
310             $kichthuoc_25=$row[
'kichthuoc_25'];
311             $kichthuoc_26=$row[
'kichthuoc_26'];
312             $kichthuoc_27=$row[
'kichthuoc_27'];
313             $kichthuoc_28=$row[
'kichthuoc_28'];
314             $kichthuoc_29=$row[
'kichthuoc_29'];
315             $kichthuoc_30=$row[
'kichthuoc_30'];
316             $kichthuoc_31=$row[
'kichthuoc_31'];
317             $kichthuoc_32=$row[
'kichthuoc_32'];
318             $kichthuoc_33=$row[
'kichthuoc_33'];
319             $kichthuoc_34=$row[
'kichthuoc_34'];
320             $kichthuoc_35=$row[
'kichthuoc_35'];
321             $kichthuoc_36=$row[
'kichthuoc_36'];
322             $kichthuoc_37=$row[
'kichthuoc_37'];
323             $kichthuoc_38=$row[
'kichthuoc_38'];
324             $kichthuoc_39=$row[
'kichthuoc_39'];
325             $kichthuoc_40=$row[
'kichthuoc_40'];
326             $kichthuoc_41=$row[
'kichthuoc_41'];
327             $kichthuoc_42=$row[
'kichthuoc_42'];
328             $kichthuoc_43=$row[
'kichthuoc_43'];
329             $kichthuoc_44=$row[
'kichthuoc_44'];
330             $kichthuoc_45=$row[
'kichthuoc_45'];
331             $kichthuoc_46=$row[
'kichthuoc_46'];
332             $kichthuoc_47=$row[
'kichthuoc_47'];
333               $anh = explode(
",", $row['image']);
334         }
335     }
336 }
337
338 ?>
339
340 <pre id=
"idTemporary" name="idTemporary" style="display:none">
341 <?

342 if
(isset($desc))
343     {
344     $sContent=stripslashes($desc);
//remove slashes (/)
345     echo $sContent;
346     }
347 ?>
348 </pre>
349
350
351
352 <pre id=
"idTemporaryen" name="idTemporaryen" style="display:none">
353 <?

354 if
(isset($descen))
355     {
356     $sContent=stripslashes($descen);
//remove slashes (/)
357     echo htmlentities($sContent);
358     }
359 ?>
360 </pre>
361
362 <script language=
"Javascript1.2"><!-- // load htmlarea
363 _editor_url =
"htmlarea/"; // URL to htmlarea files
364 var
win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
365 if
(navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
366 if
(navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
367 if
(navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
368 if
(win_ie_ver >= 5.5) {
369   document.write(
'<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
370   document.write(
' language="Javascript1.2"></scr' + 'ipt>');
371 }
else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
372 // --></script>

373
374 <form method=
"post" name="FormLoaiSP" enctype="multipart/form-data" >
375 <input type=
"hidden" name="txtDesc" id="txtDesc">
376 <input type=
"hidden" name="txtDescen" id="txtDescen">
377 <input type=
"hidden" name="act" value="product_m">
378 <input type=
"hidden" name="id" value="<? echo $_REQUEST['id']; ?>">
379 <input type=
"hidden" name="page" value="<? echo $_REQUEST['page']; ?>">
380 <table border=
"1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#0069A8" width="100%" id="AutoNumber1">
381   <tr>
382     <td width=
"45%" class="title" align="center">Cập nhật :
383     Sản phẩm</td>
384   </tr>
385   <tr>
386     <td width=
"45%">
387     <table border=
"0" cellpadding="2" bordercolor="#111111" width="100%" id="AutoNumber2" cellspacing="0">
388     
389  
390
391         
392               <?php
if(file_exists($anh[0]))
393 {?>
394 <img
class="thumb" width="300" height="300" src="<?php echo $anh['0'];?>" />
395 <input id=
"imagefield1" class="thumbfield" type="hidden" value="<?php echo $anh['0'];?>" name="imagefield1">
396 <?}
else{?>
397 <img
class="thumb" width="300" height="300" src="/quantri/images/add-images.png" />
398
399 <?}?>
400
401
402               <!-- /.box-body -->
403
404              
405             
406       <tr>
407         <td width=
"1%" class="smallfont">
408         <p align=
"right">Mã s&#7843;n ph&#7849;m</td>
409         <td width=
"1%" class="smallfont" align="center">
410         <font color=
"#FF0000"></font></td>
411         <td width=
"83%" class="smallfont">
412         <INPUT
value="<? echo $code; ?>" TYPE="text" NAME="code" CLASS=textbox size="89"></td>
413       </tr>
414        <tr>
415         <td width=
"1%" class="smallfont" align="right">
416         Thuộc danh mục</td>
417         <td width=
"1%" class="smallfont" align="center">&nbsp;
418         </td>
419         <td width=
"83%" class="smallfont">
420  
421         <
select name="cat" >
422 <? $caaaa3=mysql_query(
"SELECT * FROM cat where id='".$row['cat']."' ");
423     $cataddd3=mysql_fetch_assoc($caaaa3);?>
424
425 <option
value="<? echo $cataddd3['id'];?>" selected><? echo $cataddd3['name'];?></option>
426
427   
428
429
430                         
431                         <? $timkiem=mysql_query(
"SELECT * FROM cat order by name desc");
432                         
while($row_timkiem=mysql_fetch_array($timkiem))
433                         {?>
434                         <option
value="<? echo $row_timkiem['id'];?>"><? echo $row_timkiem['name'];?></option>
435                         <?}?>
436                         
437                         </
select>
438         </td>
439       </tr>
440      <tr>
441         <td width=
"1%" class="smallfont">
442         <p align=
"right">Tên sản phẩm</td>
443         <td width=
"1%" class="smallfont" align="center">
444         <font color=
"#FF0000">*</font></td>
445         <td width=
"83%" class="smallfont">
446         <INPUT
value="<? echo $name; ?>" TYPE="text" NAME="name" CLASS=textbox size="89"></td>
447       </tr>
448      <tr>
449         <td width=
"1%" class="smallfont" align="right">
450       Lượt mua</td>
451         <td width=
"1%" class="smallfont" align="center">
452         &nbsp;</td>
453         <td width=
"83%" class="smallfont">
454         <INPUT
value="<? echo $row['nguoimua']; ?>" TYPE="text" NAME="nguoimua" CLASS=textbox size="34"></td>
455       </tr>
456        <tr>
457         <td width=
"1%" class="smallfont" align="right">
458         Lượt xem</td>
459         <td width=
"1%" class="smallfont" align="center">
460         &nbsp;</td>
461         <td width=
"83%" class="smallfont">
462         <INPUT
value="<? echo $row['view']; ?>" TYPE="text" NAME="view" CLASS=textbox size="34"></td>
463       </tr>
464      
465             <tr>
466         <td width=
"1%" class="smallfont" align="right">
467         Giá cũ</td>
468         <td width=
"1%" class="smallfont" align="center">
469         &nbsp;</td>
470         <td width=
"83%" class="smallfont">
471         <INPUT
value="<? echo $price; ?>" TYPE="text" NAME="txtPrice" CLASS=textbox size="34"></td>
472       </tr>
473             <tr>
474         <td width=
"1%" class="smallfont" align="right">
475         Giá bán</td>
476         <td width=
"1%" class="smallfont" align="center">
477         &nbsp;</td>
478         <td width=
"83%" class="smallfont">
479         <INPUT
value="<? echo $priceen; ?>" TYPE="text" NAME="txtPriceen" CLASS=textbox size="34"></td>
480       </tr>
481  
482   <tr>
483         <td width=
"1%" class="smallfont" align="right">
484         Shop bán</td>
485         <td width=
"1%" class="smallfont" align="center">
486         &nbsp;</td>
487         <td width=
"83%" class="smallfont">
488         <INPUT
value="<? echo $user; ?>" TYPE="text" NAME="user" CLASS=textbox size="34"> Chú ý: Thay đổi nhập đúng username Shop (Phân biệt chữ HOA và chữ Thường)</td>
489       </tr>
490       
491       <tr>
492         <td width=
"1%" class="smallfont" align="right">
493         Bảo hành</td>
494         <td width=
"1%" class="smallfont" align="center">
495         &nbsp;</td>
496         <td width=
"83%" class="smallfont">
497         <INPUT
value="<? echo $row['baohanh']; ?>" TYPE="text" NAME="baohanh" CLASS=textbox size="34"> </td>
498       </tr>
499       <tr>
500         <td width=
"1%" class="smallfont" align="right">
501         Status</td>
502         <td width=
"1%" class="smallfont" align="center">
503         &nbsp;</td>
504         <td width=
"83%" class="smallfont">
505         <INPUT
value="<? echo $row['status']; ?>" TYPE="text" NAME="status" CLASS=textbox size="34"> Nhập số 0 để sản phẩm được duyệt,Nhập số 1 để Hủy sản phẩm </td>
506       </tr>
507       <tr>
508         <td width=
"1%" class="smallfont" align="right">
509         Nỗi bật</td>
510         <td width=
"1%" class="smallfont" align="center">
511         &nbsp;</td>
512         <td width=
"83%" class="smallfont">
513         <INPUT
value="<? echo $row['noibat']; ?>" TYPE="text" NAME="noibat" CLASS=textbox size="34"> Nhập số 1 để Được Nổi Bật, Nhập số 0 để Hủy nổi bật</td>
514       </tr>
515       <tr>
516         <td width=
"1%" class="smallfont" align="right">
517         Tình trạng</td>
518         <td width=
"1%" class="smallfont" align="center">
519         &nbsp;</td>
520         <td width=
"83%" class="smallfont">
521         <INPUT
value="<? echo $row['tinhtrang']; ?>" TYPE="text" NAME="tinhtrang" CLASS=textbox size="34"> Nhập số 1 để còn hàng, Nhập số 0 để hết hàng</td>
522       </tr>
523       <tr>
524         <td width=
"1%" class="smallfont" align="right">
525         Khối lượng</td>
526         <td width=
"1%" class="smallfont" align="center">
527         &nbsp;</td>
528         <td width=
"83%" class="smallfont">
529         <INPUT
value="<? echo $row['khoiluong']; ?>" TYPE="text" NAME="khoiluong" CLASS=textbox size="34"> Khối lượng sản phẩm tính bằng Gam</td>
530       </tr>
531       <tr>
532         <td width=
"1%" class="smallfont" align="right">
533         Up Top</td>
534         <td width=
"1%" class="smallfont" align="center">
535         &nbsp;</td>
536         <td width=
"83%" class="smallfont">
537         <INPUT
value="<? echo $row['uptop']; ?>" TYPE="text" NAME="uptop" CLASS=textbox size="34"> Số lần UP TOP toàn hệ thống ưu tiên tìm kiếm,danh sách sản phẩm...</td>
538       </tr>
539       <tr>
540         <td width=
"1%" class="smallfont" align="right">
541        Up Đề Cử</td>
542         <td width=
"1%" class="smallfont" align="center">
543         &nbsp;</td>
544         <td width=
"83%" class="smallfont">
545         <INPUT
value="<? echo $row['upxuhuong']; ?>" TYPE="text" NAME="upxuhuong" CLASS=textbox size="34"> Số lần UP TOP đề cử tại trang chủ</td>
546       </tr>
547       <tr>
548         <td width=
"1%" class="smallfont" align="right">
549         Top Xu hướng</td>
550         <td width=
"1%" class="smallfont" align="center">
551         &nbsp;</td>
552         <td width=
"83%" class="smallfont">
553         <INPUT
value="<? echo $row['topxuhuong']; ?>" TYPE="text" NAME="topxuhuong" CLASS=textbox size="34"> Số lần UP TOP xu hướng tại trang chủ</td>
554       </tr>
555       <tr>
556         <td width=
"1%" class="smallfont" align="right">
557         Top khuyến mãi</td>
558         <td width=
"1%" class="smallfont" align="center">
559         &nbsp;</td>
560         <td width=
"83%" class="smallfont">
561         <INPUT
value="<? echo $row['topkhuyenmai']; ?>" TYPE="text" NAME="topkhuyenmai" CLASS=textbox size="34"> Số lần UP TOP khuyến mãi tại trang chủ</td>
562       </tr>
563
564       <tr>
565         <td width=
"1%" class="smallfont" align="right">
566         Màu sắc</td>
567         <td width=
"1%" class="smallfont" align="center">
568         &nbsp;</td>
569         <td width=
"83%" class="smallfont">
570          <div
class="checkbox">
571                     <label style=
"background: #804000;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu nâu">
572                      <input
class="minimal" type="checkbox" name="mausac_nau" value="ON" <? if ($mausac_nau>"1") echo 'checked' ?>>
573                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
574                     <label style=
"background: #ffff00;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu Vàng">
575                         <input
class="minimal" type="checkbox" name="mausac_vang" value="ON" <? if ($mausac_vang>"1") echo 'checked' ?>>
576                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
577                        <label style=
"background: #ffffff;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu trắng">
578                         <input
class="minimal" type="checkbox" name="mausac_trang" value="ON" <? if ($mausac_trang>"1") echo 'checked' ?>>
579                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
580                     <label style=
"background: #000000;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu đen">
581                        <input
class="minimal" type="checkbox" name="mausac_den" value="ON" <? if ($mausac_den>"1") echo 'checked' ?>>
582                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
583                     <label style=
"background: #ff00ff;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu hồng">
584                         <input
class="minimal" type="checkbox" name="mausac_hong" value="ON" <? if ($mausac_hong>"1") echo 'checked' ?>>
585                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
586                     <label style=
"background: #00ff00;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh lá">
587                          <input
class="minimal" type="checkbox" name="mausac_xanhla" value="ON" <? if ($mausac_xanhla>"1") echo 'checked' ?>>
588                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
589                     <label style=
"background: #0080ff;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu nước biển">
590                          <input
class="minimal" type="checkbox" name="mausac_xanhnuocbien" value="ON" <? if ($mausac_xanhnuocbien>"1") echo 'checked' ?>>
591                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
592                     <label style=
"background: #00ffff;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh ngọc">
593                         <input
class="minimal" type="checkbox" name="mausac_xanhngoc" value="ON" <? if ($mausac_xanhngoc>"1") echo 'checked' ?>>
594                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
595                     <label style=
"background: #112c4e;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh đen">
596                            <input
class="minimal" type="checkbox" name="mausac_xanhden" value="ON" <? if ($mausac_xanhden>"1") echo 'checked' ?>>
597                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
598                     <label style=
"background: #999999;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xám">
599                         <input
class="minimal" type="checkbox" name="mausac_xam" value="ON" <? if ($mausac_xam>"1") echo 'checked' ?>>
600                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
601                     <label style=
"background: #800080;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu tím">
602                         <input
class="minimal" type="checkbox" name="mausac_tim" value="ON" <? if ($mausac_tim>"1") echo 'checked' ?>>
603                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
604                     <label style=
"background: #ff0000;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu đỏ">
605                          <input
class="minimal" type="checkbox" name="mausac_do" value="ON" <? if ($mausac_do>"1") echo 'checked' ?>>
606                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
607                     <label style=
"background: #ff8040;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu cam">
608                        <input
class="minimal" type="checkbox" name="mausac_cam" value="ON" <? if ($mausac_cam>"1") echo 'checked' ?>>
609                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
610                     <label style=
"background: #fef1ce;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu kem">
611                         <input
class="minimal" type="checkbox" name="mausac_kem" value="ON" <? if ($mausac_kem>"1") echo 'checked' ?>>
612                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
613                     <label style=
"background: #0522c5;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh dương">
614                         <input
class="minimal" type="checkbox" name="mausac_xanhduong" value="ON" <? if ($mausac_xanhduong>"1") echo 'checked' ?>>
615                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
616                     <label style=
"background: url(/images/mul-color.gif) center center no-repeat;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu sọc">
617                         <input
class="minimal" type="checkbox" name="mausac_soc" value="ON" <? if ($mausac_soc>"1") echo 'checked' ?>>
618                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
619                     <label style=
"background: #007000;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu xanh lá đậm">
620                         <input
class="minimal" type="checkbox" name="mausac_xanhladam" value="ON" <? if ($mausac_xanhladam>"1") echo 'checked' ?>>
621                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
622                     <label style=
"background: url(/images/floral.jpg) center center no-repeat;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu họa tiết">
623                          <input
class="minimal" type="checkbox" name="mausac_hoatiet" value="ON" <? if ($mausac_hoatiet>"1") echo 'checked' ?>>
624                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
625                     <label style=
"background: #cccccc; center center no-repeat;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu bạc">
626                         <input
class="minimal" type="checkbox" name="mausac_bac" value="ON" <? if ($mausac_bac>"1") echo 'checked' ?>>
627                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
628                     <label style=
"background: #ffc0cb; center center no-repeat;padding-left: 3px;padding-top: 5px;outline: 1px solid #ccc;" title="Màu hồng phấn">
629                          <input
class="minimal" type="checkbox" name="mausac_hongphan" value="ON" <? if ($mausac_hongphan>"1") echo 'checked' ?>>
630                     </label>&nbsp;&nbsp;&nbsp;&nbsp;
631                     
632                     
633                     
634                     
635                     
636                   </div></td>
637       </tr>
638
639
640       <tr>
641         <td width=
"1%" class="smallfont" align="right">
642         Kích thước</td>
643         <td width=
"1%" class="smallfont" align="center">
644         &nbsp;</td>
645         <td width=
"83%" class="smallfont">
646          <div
class="checkbox">
647            <div
class="checkbox">
648                     <label>
649                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_freesize" value="ON" <? if ($kichthuoc_freesize>"0") echo 'checked' ?>>
650                    Free Size
651                     </label>
652
653                   </div>
654                   <div
class="checkbox">
655                     <label>
656                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_1" value="ON" <? if ($kichthuoc_1>"0") echo 'checked' ?>>
657                    
1
658                     </label>
659                   </div>
660                    <div
class="checkbox">
661                     <label>
662                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_2" value="ON" <? if ($kichthuoc_2>"0") echo 'checked' ?>>
663                   
2
664                     </label>
665                   </div>
666                    <div
class="checkbox">
667                     <label>
668                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_3" value="ON" <? if ($kichthuoc_3>"0") echo 'checked' ?>>
669                    
3
670                     </label>
671                   </div>
672                    <div
class="checkbox">
673                     <label>
674                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_4" value="ON" <? if ($kichthuoc_4>"0") echo 'checked' ?>>
675                   
4
676                     </label>
677                   </div>
678                    <div
class="checkbox">
679                     <label>
680                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_5" value="ON" <? if ($kichthuoc_5>"0") echo 'checked' ?>>
681                    
5
682                     </label>
683                   </div>
684                    <div
class="checkbox">
685                     <label>
686                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_6" value="ON" <? if ($kichthuoc_6>"0") echo 'checked' ?>>
687                   
6
688                     </label>
689                   </div>
690                    <div
class="checkbox">
691                     <label>
692                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_7" value="ON" <? if ($kichthuoc_7>"0") echo 'checked' ?>>
693                   
7
694                     </label>
695                   </div>
696                     
697                     <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 105px;">
698                     <div
class="checkbox">
699                     <label>
700                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_8" value="ON" <? if ($kichthuoc_8>"0") echo 'checked' ?>>
701                   
8
702                     </label>
703
704                   </div>
705                   <div
class="checkbox">
706                     <label>
707                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_9" value="ON" <? if ($kichthuoc_9>"0") echo 'checked' ?>>
708                   
9
709                     </label>
710                   </div>
711                    <div
class="checkbox">
712                     <label>
713                        <input type=
"checkbox" class="minimal-red" name="kichthuoc_10" value="ON" <? if ($kichthuoc_10>"0") echo 'checked' ?>>
714                    
10
715                     </label>
716                   </div>
717                    <div
class="checkbox">
718                     <label>
719                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_11" value="ON" <? if ($kichthuoc_11>"0") echo 'checked' ?>>
720                    
11
721                     </label>
722                   </div>
723                    <div
class="checkbox">
724                     <label>
725                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_12" value="ON" <? if ($kichthuoc_12>"0") echo 'checked' ?>>
726                  
12
727                     </label>
728                   </div>
729                    <div
class="checkbox">
730                     <label>
731                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_S" value="ON" <? if ($kichthuoc_S>"0") echo 'checked' ?>>
732                    S
733                     </label>
734                   </div>
735                    <div
class="checkbox">
736                     <label>
737                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_M" value="ON" <? if ($kichthuoc_M>"0") echo 'checked' ?>>
738                    M
739                     </label>
740                   </div>
741                    <div
class="checkbox">
742                     <label>
743                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_L" value="ON" <? if ($kichthuoc_L>"0") echo 'checked' ?>>
744                   L
745                     </label>
746                   </div>
747                   </div>
748                     
749                      <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 205px;">
750                     <div
class="checkbox">
751                     <label>
752                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_XL" value="ON" <? if ($kichthuoc_XL>"0") echo 'checked' ?>>
753                    XL
754                     </label>
755
756                   </div>
757                   <div
class="checkbox">
758                     <label>
759                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_XXL" value="ON" <? if ($kichthuoc_XXL>"0") echo 'checked' ?>>
760                     XXL
761                     </label>
762                   </div>
763                    <div
class="checkbox">
764                     <label>
765                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_XS" value="ON" <? if ($kichthuoc_XS>"0") echo 'checked' ?>>
766                    XS
767                     </label>
768                   </div>
769                    <div
class="checkbox">
770                     <label>
771                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_XXS" value="ON" <? if ($kichthuoc_XXS>"0") echo 'checked' ?>>
772                    XXS
773                     </label>
774                   </div>
775                    <div
class="checkbox">
776                     <label>
777                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_2XL" value="ON" <? if ($kichthuoc_2XL>"0") echo 'checked' ?>>
778                  2XL
779                     </label>
780                   </div>
781                    <div
class="checkbox">
782                     <label>
783                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_3XL" value="ON" <? if ($kichthuoc_3XL>"0") echo 'checked' ?>>
784                    3XL
785                     </label>
786                   </div>
787                    <div
class="checkbox">
788                     <label>
789                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_4XL" value="ON" <? if ($kichthuoc_4XL>"0") echo 'checked' ?>>
790                     4XL
791                     </label>
792                   </div>
793                    <div
class="checkbox">
794                     <label>
795                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_5XL" value="ON" <? if ($kichthuoc_5XL>"0") echo 'checked' ?>>
796                  5XL
797                     </label>
798                   </div>
799                   </div>
800                   <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 305px;">
801                     <div
class="checkbox">
802                     <label>
803                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_6XL" value="ON" <? if ($kichthuoc_6XL>"0") echo 'checked' ?>>
804                   6XL
805                     </label>
806
807                   </div>
808                   <div
class="checkbox">
809                     <label>
810                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_25" value="ON" <? if ($kichthuoc_25>"0") echo 'checked' ?>>
811                    
25
812                     </label>
813                   </div>
814                    <div
class="checkbox">
815                     <label>
816                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_26" value="ON" <? if ($kichthuoc_26>"0") echo 'checked' ?>>
817                    
26
818                     </label>
819                   </div>
820                    <div
class="checkbox">
821                     <label>
822                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_27" value="ON" <? if ($kichthuoc_27>"0") echo 'checked' ?>>
823                    
27
824                     </label>
825                   </div>
826                    <div
class="checkbox">
827                     <label>
828                    <input type=
"checkbox" class="minimal-red" name="kichthuoc_28" value="ON" <? if ($kichthuoc_28>"0") echo 'checked' ?>>
829                   
28
830                     </label>
831                   </div>
832                    <div
class="checkbox">
833                     <label>
834                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_29" value="ON" <? if ($kichthuoc_29>"0") echo 'checked' ?>>
835                    
29
836                     </label>
837                   </div>
838                    <div
class="checkbox">
839                     <label>
840                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_30" value="ON" <? if ($kichthuoc_30>"0") echo 'checked' ?>>
841                    
30
842                     </label>
843                   </div>
844                    <div
class="checkbox">
845                     <label>
846                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_31" value="ON" <? if ($kichthuoc_31>"0") echo 'checked' ?>>
847                    
31
848                     </label>
849                   </div>
850                   </div>
851                    <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 405px;">
852                     <div
class="checkbox">
853                     <label>
854                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_32" value="ON" <? if ($kichthuoc_32>"0") echo 'checked' ?>>
855                   
32
856                     </label>
857
858                   </div>
859                   <div
class="checkbox">
860                     <label>
861                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_33" value="ON" <? if ($kichthuoc_33>"0") echo 'checked' ?>>
862                    
33
863                     </label>
864                   </div>
865                    <div
class="checkbox">
866                     <label>
867                       <input type=
"checkbox" class="minimal-red" name="kichthuoc_34" value="ON" <? if ($kichthuoc_34>"0") echo 'checked' ?>>
868                    
34
869                     </label>
870                   </div>
871                    <div
class="checkbox">
872                     <label>
873                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_35" value="ON" <? if ($kichthuoc_35>"0") echo 'checked' ?>>
874                   
35
875                     </label>
876                   </div>
877                    <div
class="checkbox">
878                     <label>
879                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_36" value="ON" <? if ($kichthuoc_36>"0") echo 'checked' ?>>
880                    
36
881                     </label>
882                   </div>
883                    <div
class="checkbox">
884                     <label>
885                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_37" value="ON" <? if ($kichthuoc_37>"0") echo 'checked' ?>>
886                    
37
887                     </label>
888                   </div>
889                    <div
class="checkbox">
890                     <label>
891                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_38" value="ON" <? if ($kichthuoc_38>"0") echo 'checked' ?>>
892                    
38
893                     </label>
894                   </div>
895                    <div
class="checkbox">
896                     <label>
897                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_39" value="ON" <? if ($kichthuoc_39>"0") echo 'checked' ?>>
898                    
39
899                     </label>
900                   </div>
901                   </div>
902                   <div
class="col-sm-10"style="margin-left: 8px;margin-top: -152px;margin-left: 505px;">
903                     <div
class="checkbox">
904                     <label>
905                    <input type=
"checkbox" class="minimal-red" name="kichthuoc_40" value="ON" <? if ($kichthuoc_40>"0") echo 'checked' ?>>
906                    
40
907                     </label>
908
909                   </div>
910                   <div
class="checkbox">
911                     <label>
912                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_41" value="ON" <? if ($kichthuoc_41>"0") echo 'checked' ?>>
913                   
41
914                     </label>
915                   </div>
916                    <div
class="checkbox">
917                     <label>
918                      <input type=
"checkbox" class="minimal-red" name="kichthuoc_42" value="ON" <? if ($kichthuoc_42>"0") echo 'checked' ?>>
919                    
42
920                     </label>
921                   </div>
922                    <div
class="checkbox">
923                     <label>
924                    <input type=
"checkbox" class="minimal-red" name="kichthuoc_43" value="ON" <? if ($kichthuoc_43>"0") echo 'checked' ?>>
925                    
43
926                     </label>
927                   </div>
928                    <div
class="checkbox">
929                     <label>
930                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_44" value="ON" <? if ($kichthuoc_44>"0") echo 'checked' ?>>
931                    
44
932                     </label>
933                   </div>
934                    <div
class="checkbox">
935                     <label>
936                     <input type=
"checkbox" class="minimal-red" name="kichthuoc_45" value="ON" <? if ($kichthuoc_45>"0") echo 'checked' ?>>
937                    
45
938                     </label>
939                   </div>
940                    <div
class="checkbox">
941                     <label>
942                   <input type=
"checkbox" class="minimal-red" name="kichthuoc_46" value="ON" <? if ($kichthuoc_46>"0") echo 'checked' ?>>
943                    
46
944                     </label>
945                   </div>
946                    <div
class="checkbox">
947                     <label>
948                    <input type=
"checkbox" class="minimal-red" name="kichthuoc_47" value="ON" <? if ($kichthuoc_47>"0") echo 'checked' ?>>
949                    
47
950                     </label>
951                   </div>
952                   </div>
953                     
954                     
955                  </td>
956       </tr>
957       
958       
959       
960       
961
962       </tr>
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977         <tr>
978         <td width=
"1%" class="smallfont" align="right">
979         Mô t&#
7843; s&#7843;n ph&#7849;m</td>
980         <td width=
"1%" class="smallfont" align="center">
981         &nbsp;</td>
982         <td width=
"83%" class="smallfont">
983       <textarea id=
"desc" name="txtDesc" cols="80" rows="10" ><? echo $desc1; ?></textarea>
984                     <script>
985  
986            CKEDITOR.replace(
'desc' );
987  
988        </script>
989             
990         </td>
991       </tr>
992
993
994
995
996
997  <tr>
998         <td width=
"1%" class="smallfont" align="right">
999         Từ khóa SEO</td>
1000         <td width=
"1%" class="smallfont" align="center">
1001         &nbsp;</td>
1002         <td width=
"83%" class="smallfont">
1003         <INPUT
value="<? echo $row['tukhoaseo']; ?>" TYPE="text" NAME="tukhoaseo" CLASS=textbox size="144"> </td>
1004       </tr>
1005
1006
1007  <tr>
1008         <td width=
"1%" class="smallfont" align="right">
1009         Tiêu đề SEO</td>
1010         <td width=
"1%" class="smallfont" align="center">
1011         &nbsp;</td>
1012         <td width=
"83%" class="smallfont">
1013         <INPUT
value="<? echo $row['tieudeseo']; ?>" TYPE="text" NAME="tieudeseo" CLASS=textbox size="144"> </td>
1014       </tr>
1015
1016
1017
1018  <tr>
1019         <td width=
"1%" class="smallfont" align="right">
1020         Mô tả SEO</td>
1021         <td width=
"1%" class="smallfont" align="center">
1022         &nbsp;</td>
1023         <td width=
"83%" class="smallfont">
1024            <textarea name=
"motaseo" cols="124" rows="5" ><? echo $row['motaseo']; ?></textarea> </td>
1025       </tr>
1026
1027
1028
1029      
1030        
1031      
1032        
1033        
1034       <tr>
1035         <td width=
"1%" class="smallfont">
1036         <p align=
"right">
1037         <INPUT TYPE=
"submit" NAME="butSaveLoai" VALUE="C&#7853;p nh&#7853;t" CLASS=button onclick="submitForm()">&nbsp;</td>
1038         <td width=
"1%" class="smallfont" align="center">
1039         &nbsp;</td>
1040  
1041       </tr>
1042     </table>
1043     </td>
1044   </tr>
1045   </table>
1046 </form>



Full source code website bán hàng thương mại điện tử gần giống shopee 468.856 lượt xem

Gõ tìm kiếm nhanh...